﻿#ifndef USERMANAGE_H
#define USERMANAGE_H

#include <QWidget>
#include <QMap>

#if _MSC_VER >= 1600
#pragma execution_character_set("utf-8")
#endif

namespace Ui {
class UserManage;
}

class UserManage : public QWidget
{
    Q_OBJECT

public:
    explicit UserManage(QWidget *parent = nullptr);
    ~UserManage();

    void updateUserInfo();
    void updateUserInfoShow();
    void initWindowsUnits();

private slots:
    void on_pb_modify_clicked();
    void on_pb_delete_clicked();
    void on_pb_nextPage_clicked();
    void on_pb_lastPage_clicked();
    void on_pb_firstPage_clicked();

    void on_pb_endPage_clicked();
    void on_pb_jump_clicked();
    void on_pb_search_clicked();
    void on_cb_select_currentIndexChanged(int index);
    void on_tableWidget_cellChanged(int row, int column);

    void on_pb_save_clicked();
    void on_cb_role_currentIndexChanged(int index);

private:
    Ui::UserManage *ui;
    int m_pageCount;
    int m_page;
    bool m_change;
    QList< QVector<QString> > m_modifyList;
};


#endif // USERMANAGE_H
